Text File | 1996-09-08 | 828 b | 10 lines | [TEXT/ttxt]
LoopSndDemo notes
I wanted to make a compact snippet that plays music from samples. Many games do it, but few demos show how it is done, and anyone who has tried to make this kind of code knows how many crashes you have to go through before it works.
The code is loosely based on Marv Vestrom's "sndDemo", which plays snd resources with SndPlay. There isn't much left untouched of his code, but you can still tell in some parts. My code doesn't use SndPlay, but uses bufferCmd instead, and the next sound is started immediately from the callback.
The demo plays a few sound samples from Frank Zappa's tune "Ya Hozna". I made these samples just for fun, and I don't think we should use them in a game without permission. Actually, I'd like to replace them with something 100% legal for a final version of this demo.